package net.pws.oos.biz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.pws.common.persistence.EntityManager;
import net.pws.oos.biz.model.Phone;
import net.pws.oos.biz.service.PhoneService;

@Service(value = "phoneService")
@Transactional
public class DefaultPhoneService implements PhoneService {

	@Autowired
	private EntityManager entityManager;

	@Override
	public Phone save(Phone phone) {
		entityManager.persist(phone);
		return phone;
	}

}
